﻿using System.Linq;
using pbvs.Models;


namespace pbvs.Data.Repositories.RepositoryExtensions
{
	public static class DefaultExtensions
	{
		public static IQueryable<Default> ById(this IQueryable<Default> query, int? id)
		{
			if (id.HasValue)
			{
				query = from q in query where q.Id == id select q;
			}
			return query;
		}
	}
}